﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ApiListInfo.aspx.cs" Inherits="CardLogistics.Web.MainPage.CardRecovery.ChangeBadCard.ApiListInfo" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<%@ Register Src="../../../Controls/WebUserControl_ToolBar.ascx" TagName="WebUserControl_ToolBar"
    TagPrefix="uc2" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../../js/jquery.js"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/tblistjs.js" type="text/javascript"></script>
    <script src="../../../js/CreateControl.js" type="text/javascript"></script>
    <script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
      <script type="text/javascript">
        //搜索按钮执行函数
        function queryData() {
            var ReportViewer = document.getElementById("ReportViewer");
            //var ddlSUPPName = $("#ddlSUPPID").val(); //供应商
            //var ddlSalesName = $("#ddlSalesName").val(); //销售网点
            //var StartCardNo = $("#txt_StartCardNo").val(); //开始系统卡号
            //var EndCardNo = $("#txt_EndCardNo").val(); //结束系统卡号
            var startDate = $("#txt_StartDate").val(); //开始售卡日期
            var endDate = $("#txt_EndDate").val(); //结束售卡日期
            ReportViewer.Stop();
            //ddlSUPPName=" + ddlSUPPName + "&ddlSalesName=" + ddlSalesName + "&StartCardNo=" + StartCardNo + "&EndCardNo=" + EndCardNo + "&
            var DataURL = encodeURI("ApiListInfoRpt.aspx?startDate=" + startDate + "&endDate=" + endDate);
            ReportViewer.DataURL = DataURL;
            ReportViewer.Start();
        }

    </script>
</head>
<body onload="queryData();">
    <form runat="server" id="f2">
        <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
        <div class="rightinfo">
            <ul class="seachform">
               <%-- <li>
                    <label>
                        供应商</label>
                    <select name="ddlSUPPID" id="ddlSUPPID" class="dfinput" runat="server" style="width: 150px;">
                    </select>
                </li>
                <li>
                    <label>
                        销售网点</label>
                    <select id="ddlSalesName" name="ddlSalesName" runat="server" class="dfinput" style="width: 150px;">
                    </select>
                </li>
                <li>
                    <label>
                        系统卡号</label>
                    <asp:TextBox ID="txt_StartCardNo" runat="server" CssClass="scinput" Width="80px"></asp:TextBox>至
                <asp:TextBox ID="txt_EndCardNo" runat="server" CssClass="scinput" Width="80px"></asp:TextBox>
                </li>--%>
                <li>
                    <label>
                        日期</label>
                    <asp:TextBox ID="txt_StartDate" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                        Width="100px"></asp:TextBox>&nbsp;至
                <asp:TextBox ID="txt_EndDate" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                    Width="100px"></asp:TextBox>
                </li>
                <li>
                    <label>
                        &nbsp;</label>
                    <input id="BtnSearch" type="button" class="scbtn" value="查询" onclick="queryData();" />
                </li>
            </ul>
            <script type="text/javascript">
                var divkuangH = $(window).height();
                var viewH = divkuangH - 117 + 20 - 1;
                CreateDisplayViewerEx("100%", viewH, '../../../grf/ApiListRpt.grf', "", false, "<param name=BorderStyle value=1>" +
                            "<param name='OnContentCellDblClick' value='OnContentCellDblClick'>");
            </script>
        </div>
    </form>
</body>
</html>

